from pathlib import Path


path = Path('10_chapter_10_test\learning_python.txt')
content = path.read_text()

print(content.replace('Python', 'C'))